export const baseUrlApi = (url: string) =>
  `http://303rgtn87015.vicp.fun/articleApi${url}`;

export const filerEmptyVal = (data: object): object => {
  let tempObj = {};
  for (const key in data) {
    if (data[key] || data[key] === 0) {
      tempObj[key] = data[key];
    }
  }
  return tempObj;
};
